package tw.com.softleader.movie.service.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tw.com.softleader.movie.dao.impl.MovieDaoImpl;
import tw.com.softleader.movie.entity.Movie;
import tw.com.softleader.movie.service.MovieService;

@Service
public class MovieServiceImpl implements MovieService, InitializingBean {
	
	@Autowired //@Inject
	private MovieDaoImpl movieDao;
	
	private Logger log = LoggerFactory.getLogger(MovieServiceImpl.class);

	@Override
	public List<Movie> getAll() {
		return movieDao.getAll();
	}

	@Override
	public void afterPropertiesSet() throws Exception {
		log.debug("MovieService is OK ");
	}
	
}
